package it.uai.domainsMigrator;
import java.io.File;


public class SingleFile {
	
	private File file;
	private Boolean transfered = false;
	private Boolean settedPremitions = false;
	private Boolean regularFile = true;
	private Boolean assignToFtpProcess = false;
	
	public SingleFile(File file){
		
		this.setFile(file);
		
	}

	public Boolean isTransfered() {
		return transfered;
	}

	public synchronized void setTransfered() {
		this.transfered = true;
	}

	public Boolean areSettedPremitions() {
		return settedPremitions;
	}

	public synchronized void permitionsSetted() {
		this.settedPremitions = true;
	}

	public File getFile() {
		return file;
	}

	private void setFile(File file) {
		this.file = file;
	}

	public Boolean isRegularFile() {
		return regularFile;
	}

	public void setDirectory() {
		this.regularFile = false;
	}

	public Boolean isAssignToFtpProcess() {
		return assignToFtpProcess;
	}

	public synchronized void setAssignToFtpProcess() {
		this.assignToFtpProcess = true;
	}
		

}
